<!--#include("./common_header.html")-->
<!--%import("../../tpl/js/signup_check.js")-->
<!--%import("../../tpl/js/krzip_search.js")-->

<!--%import("filter/modify_info.xml")-->
<!--@if($member_config->profile_image == 'Y')-->
    <!--%import("filter/delete_profile_image.xml")-->
<!--@end-->

<!--@if($member_config->image_name == 'Y')-->
    <!--%import("filter/delete_image_name.xml")-->
<!--@end-->

<!--@if($member_config->image_mark == 'Y')-->
    <!--%import("filter/delete_image_mark.xml")-->
<!--@end-->

<!--@if($member_config->enable_openid=="Y")-->
    <!--%import("filter/add_openid_to_member.xml")-->
    <!--%import("filter/delete_openid_from_member.xml")-->
<!--@end-->

<!--// datepicker javascript plugin load -->
<!--%load_js_plugin("ui")-->
<!--%load_js_plugin("ui.datepicker")-->

   	<div class="mod_top"><center><img src="./img/member_modifying.png"></center><div class="mod_check"><img src="./img/checked.png"> 표시는 필수 입력 사항 입니다.</div></div>

<div class="mod_middle">
    <form id="fo_insert_member" action="{getUrl()}" method="post" onsubmit="return procFilter(this, modify_info)" <!--@if($member_config->profile_image == 'Y' || $member_config->image_name=='Y' || $member_config->image_mark=='Y')-->enctype="multipart/form-data"<!--@end--> target="tmp_upload_iframe">
    <input type="hidden" name="act" value="" />
    <input type="hidden" name="module" value="member" />
    <input type="hidden" name="member_srl" value="{$member_info->member_srl}" />
    <input type="hidden" name="signature" value="{htmlspecialchars($member_info->signature)}" />
    <input type="hidden" name="page" value="{$page}" />

    <table cellspacing="0" class="rowTable">
    <tr>
        <th><div><img src="./img/checked.png" /> {$lang->user_id}</div></th>
        <td class="wide">{htmlspecialchars($member_info->user_id)}</td>
    </tr>
    <tr>
        <th><div><span class="require"><img src="./img/checked.png" /></span> {$lang->user_name}</div></th>
        <td class="wide"><input type="text" name="user_name" value="{htmlspecialchars($member_info->user_name)}" /> <p>{$lang->about_user_name}</p></td>
    </tr>
<!--    <tr>
        <th><div><span class="require"><img src="./img/checked.png" /></span> {$lang->nick_name}</div></th>
        <td><input type="text" name="nick_name" value="{htmlspecialchars($member_info->nick_name)}" /> <p>{$lang->about_nick_name}</p></td>
    </tr>
-->
    <tr>
        <th><div><span class="require"><img src="./img/checked.png" /></span> {$lang->email_address}</div></th>
        <td><input type="text" name="email_address" value="{htmlspecialchars($member_info->email_address)}" /><p>{$lang->about_email_address}</p></td>
    </tr>
	<!--@if(count($lang->find_account_question_items)>1)-->
    <tr>
        <th><div><span class="require"><img src="./img/checked.png" /> </span>{$lang->find_account_question}</div></th>
        <td>
			<select name="find_account_question">
			<!--@for($i=1,$c=count($lang->find_account_question_items);$i<$c;$i++)-->
				<option value="{$i}">{$lang->find_account_question_items[$i]}</option>
			<!--@end-->
			</select>
            <br />
			<input type="text" name="find_account_answer" value="{$member_info->find_account_answer}" class="inputTypeText w300"/>
        </td>
    </tr>
	<!--@end-->
	
    

    <!--@if($extend_form_list)-->
    {@ $dummy_chk = 0 }
	<!--//음식점가입자가 아닐경우 회원정보 수정-->
	<!--@foreach($member_info->group_list as $key => $val)-->
		<!--@if($val=='상점회원')-->
			{@$is_shop='Y'}
		<!--@end-->
	<!--@end-->
	<!--@if($is_shop!='Y')-->
		<!--@foreach($extend_form_list as $key => $val)--><!--@if($val->is_active=='Y')-->
			<!--@if($val->column_name == 'opentime' || $val -> column_name == 'closetime' || $val -> column_name =='notification')-->
			<!--@else-->
			<tr <!--@if($dummy_chk==0)-->class="first-child" {@ $dummy_chk = 1; }<!--@end-->>
			<th>
				<!--@if($val->required=='Y')--><span class="require"><img src="./img/checked.png"></span><!--@end-->
				{htmlspecialchars($val->column_title)}
			</th>
			<td>
				<!--// 일반 text -->
				<!--@if($val->column_type == 'text')-->
					<input type="text" name="{$val->column_name}" value="{htmlspecialchars($val->value)}" class="inputTypeText w400" />

				<!--// 홈페이지 주소 -->
				<!--@elseif($val->column_type == 'homepage')-->
					<input type="text" name="{$val->column_name}" value="{htmlspecialchars($val->value)}" class="inputTypeText w400" />

				<!--// Email 주소 -->
				<!--@elseif($val->column_type == 'email_address')-->
					<input type="text" name="{$val->column_name}" value="{htmlspecialchars($val->value)}" class="inputTypeText w400" />

				<!--// 전화번호 -->
				<!--@elseif($val->column_type == 'tel')-->
					<input type="text" name="{$val->column_name}" value="{htmlspecialchars($val->value[0])}" size="4" class="inputTypeText" />
					<input type="text" name="{$val->column_name}" value="{htmlspecialchars($val->value[1])}" size="4" class="inputTypeText" />
					<input type="text" name="{$val->column_name}" value="{htmlspecialchars($val->value[2])}" size="4" class="inputTypeText" />

				<!--// textarea -->
				<!--@elseif($val->column_type == 'textarea')-->
					<textarea name="{$val->column_name}" class="inputTypeTextArea w400">{htmlspecialchars($val->value)}</textarea>

				<!--// 다중 선택 -->
				<!--@elseif($val->column_type == 'checkbox')-->
					<!--@if($val->default_value)-->
						<ul class="checkbox">
						<!--@foreach($val->default_value as $v)-->
							<li><input type="checkbox" name="{$val->column_name}" value="{$v}" <!--@if(is_array($val->value)&&in_array($v, $val->value))-->checked="checked"<!--@end-->/>{$v}</li>
						<!--@end-->
						</ul>
					<!--@end-->

				<!--// 라디오 버튼 -->
				<!--@elseif($val->column_type == 'radio')-->
					<!--@if($val->default_value)-->
						<ul class="radio">
						<!--@foreach($val->default_value as $v)-->
							<li><input type="radio" name="{$val->column_name}" value="{$v}" <!--@if($val->value == $v)-->checked="checked"<!--@end-->/>{$v}</li>
						<!--@end-->
						</ul>
					<!--@end-->

				<!--// 단일 선택 -->
				<!--@elseif($val->column_type == 'select')-->
					<select name="{$val->column_name}">
					<!--@if($val->default_value)-->
						<!--@foreach($val->default_value as $v)-->
							<option value="{$v}" <!--@if($v == $val->value)-->selected="selected"<!--@end-->>{$v}</option>
						<!--@end-->
					<!--@end-->
					</select>

				<!--// 한국 주소 검색 -->
				<!--@elseif($val->column_type == 'kr_zip')-->
                <div class="krZip">
                    <div id="zone_address_search_{$val->column_name}">
                        <input type="text" name="{$val->column_name}" class="inputTypeText w300" style="cursor:pointer;" value="{$val->value[0]}" readonly="readonly" onclick="popopen('{getUrl('','module','krzip_popup','act','dispKrzip_popupIndex','column_name',$val->column_name)}','krzip_search'); return false;" />
                        <a href="{getUrl('','module','krzip_popup','act','dispKrzip_popupIndex','column_name',$val->column_name)}" onclick="popopen(this.href,'krzip_search'); return false;" class="button"><span>{$lang->cmd_search}</span></a>
                    </div>
                     <div id="zone2_address_{$val->column_name}">
                        <input type="text" name="{$val->column_name}" value="{htmlspecialchars($val->value[1])}" class="inputTypeText w300" />
                     </div>
                </div>
				<!--// 일본 주소 검색 -->
				<!--@elseif($val->column_type == 'jp_zip')-->
					<input type="text" name="{$val->column_name}" value="{htmlspecialchars($val->value)}" class="inputTypeText w300" />

				<!--// 날짜 입력 -->
				<!--@elseif($val->column_type == 'date')-->
					<input type="hidden" name="{$val->column_name}" id="date_{$val->column_name}" value="{$val->value}" />
					<input type="text" class="inputDate" value="{zdate($val->value,'Y-m-d')}" />
					<span class="button"><input type="button" value="{$lang->cmd_delete}" class="dateRemover" /></span>



				<!--@end-->
			</td>
		</tr>
		<!--@end--><!--@end-->
		<!--@end-->

	<!--@else--><!--//음식점 가입자일경우 회원정보 수정-->
		<!--@foreach($extend_form_list as $key => $val)--><!--@if($val->is_active=='Y')-->
		<!--@if($val->column_title != '문자 수신 허용' && $val->column_title != '알림매체')-->
		<tr <!--@if($dummy_chk==0)-->class="first-child" {@ $dummy_chk = 1; }<!--@end-->>
			<th>
				<!--@if($val->required=='Y')--><span class="require"><img src="./img/checked.png"></span><!--@end-->
				{htmlspecialchars($val->column_title)}
			</th>
			<td>
				<!--// 일반 text -->
				<!--@if($val->column_type == 'text')-->
					<input type="text" name="{$val->column_name}" value="{htmlspecialchars($val->value)}" class="inputTypeText w400" />

				<!--// 홈페이지 주소 -->
				<!--@elseif($val->column_type == 'homepage')-->
					<input type="text" name="{$val->column_name}" value="{htmlspecialchars($val->value)}" class="inputTypeText w400" />

				<!--// Email 주소 -->
				<!--@elseif($val->column_type == 'email_address')-->
					<input type="text" name="{$val->column_name}" value="{htmlspecialchars($val->value)}" class="inputTypeText w400" />

				<!--// 전화번호 -->
				<!--@elseif($val->column_type == 'tel')-->
					<input type="text" name="{$val->column_name}" value="{htmlspecialchars($val->value[0])}" size="4" class="inputTypeText" />
					<input type="text" name="{$val->column_name}" value="{htmlspecialchars($val->value[1])}" size="4" class="inputTypeText" />
					<input type="text" name="{$val->column_name}" value="{htmlspecialchars($val->value[2])}" size="4" class="inputTypeText" />

				<!--// textarea -->
				<!--@elseif($val->column_type == 'textarea')-->
					<textarea name="{$val->column_name}" class="inputTypeTextArea w400">{htmlspecialchars($val->value)}</textarea>

				<!--// 다중 선택 -->
				<!--@elseif($val->column_type == 'checkbox')-->
					<!--@if($val->default_value)-->
						<ul class="checkbox">
						<!--@foreach($val->default_value as $v)-->
							<li><input type="checkbox" name="{$val->column_name}" value="{$v}" <!--@if(is_array($val->value)&&in_array($v, $val->value))-->checked="checked"<!--@end-->/>{$v}</li>
						<!--@end-->
						</ul>
					<!--@end-->

				<!--// 라디오 버튼 -->
				<!--@elseif($val->column_type == 'radio')-->
					<!--@if($val->default_value)-->
						<ul class="radio">
						<!--@foreach($val->default_value as $v)-->
							<li><input type="radio" name="{$val->column_name}" value="{$v}" <!--@if($val->value == $v)-->checked="checked"<!--@end-->/>{$v}</li>
						<!--@end-->
						</ul>
					<!--@end-->

				<!--// 단일 선택 -->
				<!--@elseif($val->column_type == 'select')-->
					<select name="{$val->column_name}">
					<!--@if($val->default_value)-->
						<!--@foreach($val->default_value as $v)-->
							<option value="{$v}" <!--@if($v == $val->value)-->selected="selected"<!--@end-->>{$v}</option>
						<!--@end-->
					<!--@end-->
					</select>

				<!--// 한국 주소 검색 -->
				<!--@elseif($val->column_type == 'kr_zip')-->
				
					<div class="krZip">
						<div id="zone_address_list_{$val->column_name}" style="display:none">
							<select name="{$val->column_name}" class="w300"></select>
							<!--//선택버튼을 없앰
							<a href="#" onclick="doSelectKrZip('{$val->column_name}'); return false;" class="button"><span>{$lang->cmd_select}</span></a>
							-->
							<a href="#" onclick="doHideKrZipList('{$val->column_name}'); return false;" class="button"><span>{$lang->cmd_cancel}</span></a>
						</div>
						<div id="zone_address_search_{$val->column_name}" style="display:<!--@if($val->value[0])-->none<!--@else-->inline<!--@end-->;">
							<input type="text" name="_tmp_address_search_{$val->column_name}" class="inputTypeText w400" value="" />
							<a href="#" onclick="doSearchKrZip('{$val->column_name}'); return false;" class="button"><span>{$lang->cmd_search}</span></a>
						</div>
						<br/>

						<div class="address2">
							<input type="text" name="{$val->column_name}" value="{htmlspecialchars($val->value[1])}" class="inputTypeText w400" />
						</div>
					</div>

				<!--// 일본 주소 검색 -->
				<!--@elseif($val->column_type == 'jp_zip')-->
					<input type="text" name="{$val->column_name}" value="{htmlspecialchars($val->value)}" class="inputTypeText w300" />

				<!--// 날짜 입력 -->
				<!--@elseif($val->column_type == 'date')-->
					<input type="hidden" name="{$val->column_name}" id="date_{$val->column_name}" value="{$val->value}" />
					<input type="text" class="inputDate" value="{zdate($val->value,'Y-m-d')}" />
					<span class="button"><input type="button" value="{$lang->cmd_delete}" class="dateRemover" /></span>



				<!--@end-->
			</td>
		</tr>
		<!--@end--><!--@end--><!--@end-->
	<!--@end-->
	<!--@end-->
    

    <!--@if($member_config->enable_openid=="Y")-->
    <tr><th class="title" colspan="2"><div>{$lang->openid}</div></th></tr>
    <tr>
        <td colspan="2" class="openids">
            <!--@foreach($openids as $openid)-->
            <div><a href="{$openid->bookmarklet}">{$openid->openid}</a> <a onclick="doDeleteOpenIDFromMember('{$openid->openid}')" class="buttonSet buttonDelete"><span>{$lang->cmd_delete}</span></a></div>
            <!--@end-->

            <div class="insertOpenID">
                <input name="openid" type="text" class="openid_user_id" />
                <input name="openid_to_delete" type="hidden" />
                <a onclick="doAddOpenIDToMember()" class="button"><span>{$lang->cmd_insert}</span></a>
            </div>
        </td>
    </tr>
    <!--@end-->
    </table>
    <div class="button">
	    <span><input type="image" src="./img/confirm_button.png" accesskey="s" /></span>
		<a href="{getUrl('act','dispMemberInfo','member_srl','')}"><img src="./img/cancel_button.png" /></a>
	</div>
</form>
</div>
<div class="mod_bottom"></div>

<script type="text/javascript">
(function($){
    $(function(){
        var option = { changeMonth: true, changeYear: true, gotoCurrent: false,yearRange:'-100:+10', onSelect:function(){

            $(this).prev('input[type="hidden"]').val(this.value.replace(/-/g,""))}
        };
        $.extend(option,$.datepicker.regional['{$lang_type}']);
        $(".inputDate").datepicker(option);
		$(".dateRemover").click(function() {
			$(this).parent().prevAll('input').val('');
			return false;});
    });
})(jQuery);
</script>

<iframe id="tmp_upload_iframe" name="tmp_upload_iframe" style="display:none;width:1px;height:1px;position:absolute;top:-10px;left:-10px"></iframe>

<!--#include("./common_footer.html")-->
